package com.zj.study.config;

import com.zj.study.annotation.BeanLog;
import com.zj.study.entity.Person;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Lazy;

/**
 * @author 赵赳
 * @since 2021/8/31 10:34
 */
@Configuration
public class LazyConfig {

  @Bean
  @Lazy
  @BeanLog
  public Person person() {
    return new Person("李四", 55);
  }

}
